Skip to main content

Get Document Type List

GET : http://<base_url>/digipay/v3/user/document_type

This API is used to get a document type detail into the system

QUERY PARAMS:-

ParameterTypeDescriptionValue
document_type_titleStringThe title or name of the document type, such as ""Passport"" or ""Driver's License.selfish
document_user_typeIntRepresents the user type associated with the document, like different roles or permissions2
document_side_typeIntDenotes the type of document side (front, back, both) that is being referred to.1
is_mandatoryBooleanA boolean flag indicating whether the document is mandatory.true/false
document_typeIntRepresents the type or classification of the document.1
document_categoryIntDenotes the category to which the document belongs.2
dynamic_category_keyStringA key that dynamically links documents to specific categories.dynamic_key
expiry_date_requiredBooleanA boolean flag indicating whether an expiry date is required for the document."true/false
skipIntSkip the first n document from the query result1
limitIntLimits the number of records or documents that you want1
start_datelongunix timestamp value in second1
end_dateLongunix timestamp value in second1
sortingLongSorting of the Data in the form of a string123
search_keywordStringa keyword is either name of user compalits logs to search123

HEADERS:-

ParameterTypeDescriptionvalue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url 'http://192.168.1.102:8014/digipay/v3/user/document_type?document_type=2&user_type=2&dynamic_category_key=dynamic_key&document_category=2&expiry_date_required=false&business_types=%5B%22%22type1%22%22&business_types=%22%22type2%22%22%5D&business_types=&skip=1&limit=1&is_active=false&start_date=1&end_date=1&sorting=123&search_keyword=123' \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"document_type": [
{
"id": "b9a4cbeeedd340509cb1ac628cae2973",
"document_type_title": "Selfie",
"document_user_type": 2,
"document_side_type": 1,
"is_mandatory" : false,
"document_extra_fields": [
"key1",
"key2"
],
"document_type" : 1,
"document_group": 1
}
]
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error